<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<!-- 声明数组，并存储若干水果，计算其长度，并遍历打印输出。 -->
		<script type="text/javascript">
			let fruit = ["芒果","猕猴桃","梨","甘蔗","哈密瓜"];
			console.log(fruit.length);	//长度
			for(let i in fruit ){
				console.log(i + ":" +fruit[i]);
			}
		</script>
	</body>
</html>
